<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>食堂菜品打分App - 菜品编辑</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#FF7A45',
                        secondary: '#FFA940',
                        dark: '#262626',
                        light: '#F5F5F5',
                        gray: {
                            100: '#FAFAFA',
                            200: '#F0F0F0',
                            300: '#D9D9D9',
                            400: '#BFBFBF',
                            500: '#8C8C8C',
                            600: '#595959',
                            700: '#434343',
                            800: '#262626',
                            900: '#1F1F1F',
                        }
                    },
                    fontFamily: {
                        sans: ['Noto Sans SC', 'Inter', 'system-ui', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 4px 12px rgba(0, 0, 0, 0.05)',
                        'button': '0 2px 8px rgba(255, 122, 69, 0.25)',
                    }
                }
            }
        }
    </script>
</head>
<body class="bg-gray-100 font-sans">
    <div class="container mx-auto p-6">
        <h1 class="text-2xl font-bold mb-6 text-center text-dark">食堂菜品打分App - 菜品编辑</h1>
        
        <div class="flex flex-wrap gap-6 justify-center">
            <!-- 菜品编辑页面 -->
            <div class="w-80 h-[600px] bg-white rounded-xl shadow-card overflow-hidden border border-gray-200 relative">
                <div class="p-4 bg-primary text-white font-bold flex items-center">
                    <i class="fas fa-arrow-left mr-2 cursor-pointer"></i>
                    编辑菜品
                </div>
                <div class="p-4 overflow-y-auto h-[552px]">
                    <!-- 日期和餐别信息 -->
                    <div class="mb-6 text-center">
                        <div class="text-sm text-gray-500">2023年10月18日</div>
                    </div>
                    
                    <!-- 菜品图片上传 -->
                    <div class="mb-6">
                        <label class="block text-sm font-medium text-gray-700 mb-2">菜品图片</label>
                        <div class="border-2 border-dashed border-gray-300 rounded-lg p-4 text-center hover:border-primary transition cursor-pointer">
                            <div class="flex flex-col items-center justify-center">
                                <img src="https://images.unsplash.com/photo-1551326844-4df70f78d0e9?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3" class="w-32 h-32 object-cover rounded-lg mb-3" alt="菜品预览">
                                <div class="text-sm text-gray-500">点击更换图片</div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 菜品基本信息 -->
                    <div class="space-y-4 mb-6">
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">菜品名称</label>
                            <input type="text" value="现磨豆浆" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary">
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">餐别</label>
                            <div class="flex space-x-2">
                                <button class="flex-1 py-2 bg-primary text-white rounded-lg shadow-sm">早餐</button>
                                <button class="flex-1 py-2 bg-gray-200 text-gray-600 rounded-lg shadow-sm hover:bg-gray-300 transition">午餐</button>
                                <button class="flex-1 py-2 bg-gray-200 text-gray-600 rounded-lg shadow-sm hover:bg-gray-300 transition">晚餐</button>
                            </div>
                        </div>
                        
                        <div>
                            <label class="block text-sm font-medium text-gray-700 mb-2">负责厨师</label>
                            <input type="text" value="张师傅" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary">
                        </div>
                    </div>
                    
                    <!-- 菜品描述 -->
                    <div class="mb-6">
                        <label class="block text-sm font-medium text-gray-700 mb-2">菜品描述</label>
                        <textarea rows="3" class="w-full px-3 py-2 border border-gray-300 rounded-lg focus:outline-none focus:ring-2 focus:ring-primary/50 focus:border-primary">新鲜黄豆现磨，口感醇厚，营养丰富，不添加任何防腐剂。</textarea>
                    </div>
                    
                    <!-- 菜品标签 -->
                    <div class="mb-6">
                        <label class="block text-sm font-medium text-gray-700 mb-2">菜品标签</label>
                        <div class="flex flex-wrap gap-2">
                            <div class="px-3 py-1 bg-primary text-white rounded-full text-sm flex items-center">
                                <span>素食</span>
                                <i class="fas fa-times ml-1 cursor-pointer"></i>
                            </div>
                            <div class="px-3 py-1 bg-primary text-white rounded-full text-sm flex items-center">
                                <span>饮品</span>
                                <i class="fas fa-times ml-1 cursor-pointer"></i>
                            </div>
                            <div class="px-3 py-1 border border-dashed border-gray-300 text-gray-500 rounded-full text-sm cursor-pointer hover:border-primary hover:text-primary transition">
                                + 添加标签
                            </div>
                        </div>
                    </div>
                    
                    <!-- 是否推荐 -->
                    <div class="mb-6 flex items-center">
                        <input type="checkbox" id="recommend" class="w-4 h-4 text-primary focus:ring-primary border-gray-300 rounded">
                        <label for="recommend" class="ml-2 text-sm font-medium text-gray-700">设为推荐菜品</label>
                    </div>
                    
                    <!-- 底部操作按钮 -->
                    <div class="flex space-x-3 mt-6">
                        <button class="flex-1 py-2 bg-gray-200 text-gray-600 rounded-lg hover:bg-gray-300 transition">
                            取消
                        </button>
                        <button class="flex-1 py-2 bg-primary text-white rounded-lg hover:bg-primary/90 transition shadow-button">
                            保存
                        </button>
                    </div>
                </div>
            </div>
            
            <!-- 评论查看页面 -->
            <div class="w-80 h-[600px] bg-white rounded-xl shadow-card overflow-hidden border border-gray-200 relative">
                <div class="p-4 bg-primary text-white font-bold flex items-center">
                    <i class="fas fa-arrow-left mr-2 cursor-pointer"></i>
                    菜品评论
                </div>
                <div class="p-4 overflow-y-auto h-[552px]">
                    <!-- 菜品信息 -->
                    <div class="flex items-center mb-4">
                        <img src="https://images.unsplash.com/photo-1551326844-4df70f78d0e9?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3" class="w-16 h-16 object-cover rounded-lg mr-3" alt="豆浆">
                        <div>
                            <h2 class="font-bold text-lg">现磨豆浆</h2>
                            <div class="flex items-center text-yellow-400 text-sm">
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star"></i>
                                <i class="fas fa-star-half-alt"></i>
                                <span class="ml-1 text-gray-600">4.5 (58人评分)</span>
                            </div>
                            <div class="text-xs text-gray-500 mt-1">
                                <i class="fas fa-user mr-1"></i>
                                <span>张师傅</span>
                                <span class="ml-2 px-2 py-0.5 bg-primary/10 text-primary rounded-full">早餐</span>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评分分布 -->
                    <div class="bg-gray-50 rounded-lg p-3 mb-4">
                        <h3 class="font-medium text-sm mb-2">评分分布</h3>
                        <div class="space-y-2">
                            <div class="flex items-center">
                                <div class="w-8 text-xs text-gray-500">5星</div>
                                <div class="flex-1 mx-2 bg-gray-200 rounded-full h-2">
                                    <div class="bg-primary rounded-full h-2" style="width: 75%"></div>
                                </div>
                                <div class="w-8 text-xs text-gray-500 text-right">75%</div>
                            </div>
                            <div class="flex items-center">
                                <div class="w-8 text-xs text-gray-500">4星</div>
                                <div class="flex-1 mx-2 bg-gray-200 rounded-full h-2">
                                    <div class="bg-primary rounded-full h-2" style="width: 15%"></div>
                                </div>
                                <div class="w-8 text-xs text-gray-500 text-right">15%</div>
                            </div>
                            <div class="flex items-center">
                                <div class="w-8 text-xs text-gray-500">3星</div>
                                <div class="flex-1 mx-2 bg-gray-200 rounded-full h-2">
                                    <div class="bg-primary rounded-full h-2" style="width: 5%"></div>
                                </div>
                                <div class="w-8 text-xs text-gray-500 text-right">5%</div>
                            </div>
                            <div class="flex items-center">
                                <div class="w-8 text-xs text-gray-500">2星</div>
                                <div class="flex-1 mx-2 bg-gray-200 rounded-full h-2">
                                    <div class="bg-primary rounded-full h-2" style="width: 3%"></div>
                                </div>
                                <div class="w-8 text-xs text-gray-500 text-right">3%</div>
                            </div>
                            <div class="flex items-center">
                                <div class="w-8 text-xs text-gray-500">1星</div>
                                <div class="flex-1 mx-2 bg-gray-200 rounded-full h-2">
                                    <div class="bg-primary rounded-full h-2" style="width: 2%"></div>
                                </div>
                                <div class="w-8 text-xs text-gray-500 text-right">2%</div>
                            </div>
                        </div>
                    </div>
                    
                    <!-- 评论列表 -->
                    <div>
                        <h3 class="font-medium text-sm mb-3">全部评论 (58)</h3>
                        
                        <div class="space-y-4">
                            <div class="border-b border-gray-200 pb-4">
                                <div class="flex justify-between">
                                    <div class="flex items-center">
                                        <img src="https://images.unsplash.com/photo-1599566150163-29194dcaad36?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3" class="w-8 h-8 rounded-full object-cover" alt="用户头像">
                                        <span class="ml-2 font-medium">王同学</span>
                                    </div>
                                    <div class="flex items-center text-yellow-400 text-xs">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star-half-alt"></i>
                                    </div>
                                </div>
                                <p class="text-sm text-gray-600 mt-2">豆浆很新鲜，口感醇厚，价格也很实惠。希望能多一些口味选择，比如添加黑芝麻或者核桃的。</p>
                                <div class="mt-2 flex space-x-2">
                                    <img src="https://images.unsplash.com/photo-1551326844-4df70f78d0e9?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3" class="w-16 h-16 object-cover rounded" alt="评论图片">
                                    <img src="https://images.unsplash.com/photo-1553787499-6f9133242821?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3" class="w-16 h-16 object-cover rounded" alt="评论图片">
                                </div>
                                <div class="text-xs text-gray-400 mt-2">
                                    <span>2023-10-12</span>
                                </div>
                            </div>
                            
                            <div class="border-b border-gray-200 pb-4">
                                <div class="flex justify-between">
                                    <div class="flex items-center">
                                        <img src="https://images.unsplash.com/photo-1527980965255-d3b416303d12?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3" class="w-8 h-8 rounded-full object-cover" alt="用户头像">
                                        <span class="ml-2 font-medium">赵同学</span>
                                    </div>
                                    <div class="flex items-center text-yellow-400 text-xs">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="far fa-star"></i>
                                        <i class="far fa-star"></i>
                                        <i class="far fa-star"></i>
                                    </div>
                                </div>
                                <p class="text-sm text-gray-600 mt-2">今天的豆浆有点稀，不如以前浓稠，希望能保持品质。</p>
                                <div class="text-xs text-gray-400 mt-2">
                                    <span>2023-10-10</span>
                                </div>
                            </div>
                            
                            <div class="border-b border-gray-200 pb-4">
                                <div class="flex justify-between">
                                    <div class="flex items-center">
                                        <img src="https://images.unsplash.com/photo-1580489944761-15a19d654956?w=800&auto=format&fit=crop&q=60&ixlib=rb-4.0.3" class="w-8 h-8 rounded-full object-cover" alt="用户头像">
                                        <span class="ml-2 font-medium">李同学</span>
                                    </div>
                                    <div class="flex items-center text-yellow-400 text-xs">
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                        <i class="fas fa-star"></i>
                                    </div>
                                </div>
                                <p class="text-sm text-gray-600 mt-2">每天早上必喝的豆浆，味道很好，温度也刚刚好，不会太烫。希望能保持这个水准！</p>
                                <div class="text-xs text-gray-400 mt-2">
                                    <span>2023-10-08</span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html> 